﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SPVisualDev.VSAddin.Dialogs
{
    public partial class DialogDebugWatcher : Form
    {
        public DialogDebugWatcher()
        {
            InitializeComponent();

            this.FormClosing += new FormClosingEventHandler(DialogDebugWatcher_FormClosing);
        }

        void DialogDebugWatcher_FormClosing(object sender, FormClosingEventArgs e)
        {
            this.DialogResult = DialogResult.Abort;
        }

        public string InfoMessage
        {
            get { return this.lblText.Text; }
            set { this.lblText.Text = value; }
        }

        private void btnStop_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Abort;
            this.Close();
        }
    }
}
